package com.youli.gb.model;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String title;
	private String content;
	private Date createDate;
	private String status;
	private int zan;
	private int conter;
	private String readTimes;
	//外键user_id
	private SysUser user;
	
	public Message() {
		super();
	}
	
	public Message(int id, String title, String content, Date createDate, String status, int zan, int conter,
			String readTimes, SysUser user) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.createDate = createDate;
		this.status = status;
		this.zan = zan;
		this.conter = conter;
		this.readTimes = readTimes;
		this.user = user;
	}

	public Message(String title, String content, SysUser user) {
		super();
		this.title = title;
		this.content = content;
		this.user = user;
	}

	public Message(int id, String title, String content) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getZan() {
		return zan;
	}

	public void setZan(int zan) {
		this.zan = zan;
	}

	public int getConter() {
		return conter;
	}

	public void setConter(int conter) {
		this.conter = conter;
	}

	public String getReadTimes() {
		return readTimes;
	}

	public void setReadTimes(String readTimes) {
		this.readTimes = readTimes;
	}

	public SysUser getUser() {
		return user;
	}

	public void setUser(SysUser user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "Message [id=" + id + ", title=" + title + ", content=" + content + ", createDate=" + createDate
				+ ", status=" + status + ", zan=" + zan + ", conter=" + conter + ", readTimes=" + readTimes + ", user="
				+ user + "]";
	}
	
	
	
}
